package com.bwie.message.controller;

import com.bwie.common.domain.request.UserReqSendDelMessage;
import com.bwie.common.result.Result;
import com.bwie.message.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Junchen_N1
 * @Date 2025/6/17 12:07
 * @ClassName MessageController
 * @Description TODO
 */
@RestController
@RequestMapping("/message")
public class MessageController {

    @Autowired
    private MessageService messageService;

    @PostMapping("/sendDelFriendMsg")
    public Result sendDelFriendMsg(@RequestBody UserReqSendDelMessage userReqSendDelMessage){
        messageService.sendDelFriendMsg(userReqSendDelMessage);
        return Result.success();
    }

}
